package com.zhentao.controller;

import com.zhentao.service.YdAccountService;
import com.zhentao.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("account")
public class AccountController {

    @Autowired
    private YdAccountService ydAccountService;

    @GetMapping("accountList")
    public Result accountList(){
       return Result.success(ydAccountService.list());
    }
}
